package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-08-29
 * Time: 16:26
 */
public class ThreadD11 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            for (int i = 0; i < 10000; i++) {

            }
        });
        System.out.println("start之前：" + t.getState());
        t.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("start执行中：" + t.getState());

        }
        t.join();
        System.out.println("start之后：" + t.getState());

    }
}
